package com.edwin.log4j;

import org.apache.log4j.Logger;

public class Log4JAnnotationProcessor {

	

	public static void print(Class<?> clazz,String lv, Object o) {
		 Logger LOGGER = Logger.getLogger(clazz);
		if (lv.equals("FATAL")) {
			LOGGER.fatal(o);
		} else if (lv.equals("ERROR")) {
			LOGGER.error(o);
		} else if (lv.equals("WARN")) {
			LOGGER.warn(o);
		} else if (lv.equals("INFO")) {
			LOGGER.info(o);
		} else if (lv.equals("DEBUG")) {
			LOGGER.debug(o);
		} else {
			LOGGER.error("未设置正确的LOG LEVL");
		}

	}

}
